package com.pxmeta.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pxmeta.user.entity.UserBill;
import com.pxmeta.user.entity.UserBlock;
import com.pxmeta.user.entity.vo.PartyUserBillVO;
import com.pxmeta.user.entity.vo.UserBillVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wcl
 * @since 2022-07-13
 */
public interface UserBillMapper extends BaseMapper<UserBill> {

    List<PartyUserBillVO> getContributionList(@Param("partyId") Long partyId, @Param("type") Integer type);


    List<PartyUserBillVO> getCharmList(@Param("partyId") Long partyId, @Param("type") Integer type);

    /**
     * 获取房间总流水
     * @param partyId
     * @return
     */
    Double getTotalBillNumber(@Param("partyId") String partyId, @Param("type") Integer type);

    List<PartyUserBillVO> getContributionTopThree(@Param("partyId") Long partyId);

    IPage<UserBillVO> getSystemUpdateBalanceList(@Param("page") Page<UserBillVO> page);
}
